package com.inspur.attendance.Aspects.LoginLog;

import com.inspur.attendance.Tools.Return;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.repository.query.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LogController {

    @Autowired
    LogService logService;

    @Autowired
    LogDao logDao;
    
    @RequestMapping("/findLog")
    public Return findLog(@Param("pageNo") Integer pageNo,
                          @Param("pageSize") Integer pageSize) {
        Page<LogEntity> page1 = logService.getPage(pageNo, pageSize);
        return Return.success(page1);
    }

}
